#!/bin/bash
set -e

# Stop the service if it's running
if systemctl is-active --quiet lanchat-server; then
    systemctl stop lanchat-server
fi

# Disable the service
systemctl disable lanchat-server.service || true

exit 0
